<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

namespace App\Lib\FormulaInterpreter\Command\CommandFactory;

use App\Lib\FormulaInterpreter\Command\NumericCommand;

/**
 * Description of FunctionParser
 *
 * @author mathieu
 */
class NumericCommandFactory implements CommandFactoryInterface {

    public function create($options) {
        if (!isset($options['value'])) {
            throw new CommandFactoryException();
        }

        return new NumericCommand($options['value']);

    }

}

?>
